package com.example.firstboot.mapper;

import com.example.firstboot.entity.TbCheck;
import com.example.firstboot.entity.TbMedicine;

import java.util.List;

public interface TbMedicineMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(TbMedicine record);

    int insertSelective(TbMedicine record);

    TbMedicine selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(TbMedicine record);

    int updateByPrimaryKey(TbMedicine record);

    Integer alertMedicine(String id, String name, String price);

    List<TbCheck> findAllMedicine();

    Integer addMedicine(String name, String price);

    Integer deleteMedicine(String id);
}